import { BaseEntity } from 'src/common/base.entity'
import { Column, Entity, ManyToOne } from 'typeorm'
import { Item } from 'src/items/entities/item.entity'
import { User } from './user.entity'

@Entity()
export class History extends BaseEntity {
  @ManyToOne(() => Item)
  item: Item

  @Column()
  count: number

  @ManyToOne(() => User)
  user: User
}
